package com.cdx.jvm;

/**
 * 模拟old GC
 * @author chedx
 * @data 2021/1/21 6:56 AM
 */
public class JVMTestOldGCMain {
    public static void main(String[] args) {
        byte[] array1 = new byte[2 * 1024 * 1024];
        array1  = new byte[2 * 1024*1024];
        array1  = new byte[2 * 1024*1024];

        array1 = null;
        byte[] array2 = new byte[128 * 1024];

        byte[] array3 = new byte[2 * 1024 * 1024];

        array3 = new byte[2 * 1024 * 1024];
        array3 = new byte[2 * 1024 * 1024];
        array3 = new byte[128 * 1024];
        array3  = null;
        byte[] array4 = new byte[2*1024*1024];
    }
}
